home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / msql-1.0.6 / src / makegen / yacc.mm < prev   
Text File  |  1995-02-14  |  427b  |  25 lines

  1. #!/bin/sh
  2.  
  3. . $TOP/makegen/makegen.cf
  4.  
  5. src=$1
  6. shift
  7. comment=$*
  8. outfile=`echo $src | sed "s/\.y\$/.c/"`
  9. obj=`echo $src | sed "s/\.y\$/.o/"`
  10.  
  11. echo    "$outfile : $src"
  12. echo    "    @echo \"$comment\""
  13. echo    '    $(YACC) $(YACC_FLAGS)'" $src"
  14. echo    "    mv y.tab.c $outfile"
  15. echo
  16. echo    "$obj : $outfile"
  17. echo    '    $(CC) $(CC_FLAGS)'" -c $outfile"
  18. echo
  19. echo    "clean ::"
  20. echo    "    rm -f $outfile y.tab.*"
  21. echo
  22. echo    "depend ::"
  23. echo    "    @touch y.tab.h"
  24. echo
  25.